Component({
  properties: {
    itemList: Array,
    defaultValues: Array
  },
  data: {
    values: [],
  },
  lifetimes: {
    attached: function () {
      // 进入节点树
      this.setData({ values: this.data.defaultValues });
    },
  },
  methods: {
    onSelect(ev) {
      this.setData({ values: ev.detail })
    }
  },
  behaviors: ['wx://component-export'],
  export() {
    return this.data.values
  },
})
